<script>
import {defineComponent} from 'vue'
import axios from "axios";
export default defineComponent({
    name: "swiperModule",
    data(){
        return{
            arrList:'',

        }
    },
    methods:{

    },
    created() {
        axios.get('http://1.117.81.216:8087/weChat/applet/course/banner/list?number=5')
            .then(res=>{
            this.arrList = res.data.data
            console.log(this.arrList)

        })


    }
})
</script>

<template>
<div>
    <div class="carousel-map">
        <div class="img-box">
            <a-carousel arrows>
            <div
                slot="prevArrow"
                class="custom-slick-arrow"
                style="left: 10px;zIndex: 1"
            >
                <a-icon type="left-circle" />
            </div>
            <div slot="nextArrow"  class="custom-slick-arrow" style="right: 10px">
                <a-icon type="right-circle" />
            </div>
            <div v-for="(item) in this.arrList" :key="item.id"><img class="img" :src="item.imgUrl" alt=""></div>
            </a-carousel>
        </div>
    </div>
</div>
</template>

<style scoped >
.carousel-map{
  background: #fff;
  border-radius: 8px;
  width: 1160px;
  height: 400px;
  padding: 16px;
  margin: 0 auto;
  margin-top: -50px;
}
.carousel-map>.img-box{
  border-radius: 8px;
  width: 1130px;
  height: 370px;
  overflow: hidden;
  background-color: aqua;
  margin: 0 auto;
}

.ant-carousel >>> .slick-slide {
    text-align: center;
    height: 370px;
    line-height: 160px;
    background: #364d79;
    overflow: hidden;
}

.ant-carousel >>> .custom-slick-arrow {
    width: 25px;
    height: 25px;
    font-size: 25px;
    color: #fff;
    background-color: rgba(31, 45, 61, 0.11);
    opacity: 0.3;
}
.ant-carousel >>> .custom-slick-arrow:before {
    display: none;
}
.ant-carousel >>> .custom-slick-arrow:hover {
    opacity: 0.5;
}

.ant-carousel >>> .slick-slide h3 {
    color: #fff;
}
.img{
    width: 1130px;
    height: 370px;
}
</style>